package com.wzy.vx.form;

import lombok.Data;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;

/**
 * @ProjectName: vx
 * @Package: com.wzy.vx.form
 * @ClassName: Orderform
 * @Author: Administrator
 * @Description: ${description}
 * @Date: 2019/3/14 9:21
 * @Version: 1.0
 */
@Data
public class Orderform {
    /**
     * 买家姓名
     */
    @NotEmpty(message = "姓名必填")
    private String name;

    /**
     * 买家手机号
     */
    @NotEmpty(message = "手机号必填")
    private String phone;

    /**
     * 买家地址
     */
    @NotEmpty(message = "地址必填")
    private String address;

    /**
     * 买家微信openid
     */
    @NotEmpty(message = "openid必填")
    private String openid;

    /**
     * 购物车
     */
    @NotEmpty(message = "购物车不能为空")
    private String items;

    public String getName() {
        return name;
    }

    public String getPhone() {
        return phone;
    }

    public String getAddress() {
        return address;
    }

    public String getOpenid() {
        return openid;
    }

    public String getItems() {
        return items;
    }
}
